
import http from './httpInstance';

// 获取静态数据
function getStaticData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetleader/dataanalysis/staticdataitem',
    data: params,
  });
}

// 获取设备类型
function getdeviceTypeData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetleader/dataanalysis/devicecatalog',
    data: params,
  });
}


// 企业类型
function getCompanyTypeData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetleader/dataanalysis/enterprisecatalog',
    data: params,
  });
}


// 事件等级
function getEventLevelData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetleader/dataanalysis/eventcountgroupbyclass',
    data: params,
  });
}

// 事件类型
function getEventTypeData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetleader/dataanalysis/eventcountgroupbytype',
    data: params,
  });
}

// 事件趋势图
function getEventTrendData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetleader/dataanalysis/eventtrend',
    data: params,
  });
}


// 获取当年的事件
function getEventCountData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetleader/dataanalysis/eventcount',
    data: params,
  });
}


// 获取热力图
function getHeatMapData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/enforcement/thermodynamicchart',
    data: params,
  });
}




export { getStaticData,getdeviceTypeData,getCompanyTypeData,getEventLevelData,getEventTypeData,getEventTrendData,getEventCountData,getHeatMapData };
